<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>环环相扣效果</title>
    <style>
      .wrap {
        /* 子元素位于 3D场景中 */
        transform-style: preserve-3d;
      }

      .ring {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        float: left;
      }

      .tomato {
        border: 30px solid #ff6347;
      }

      .skyblue {
        border: 30px solid #87ceeb;
        /* 向左移动 40px */
        margin-left: -80px;
        /* 旋转的中心点*/
        /* transform-origin: center 120px; */
        /* 沿X轴正方向旋转的度数  */
        transform: rotateX(1deg);
      }
    </style>
  </head>
  <body>
    <div class="wrap">
      <div class="ring tomato"></div>
      <div class="ring skyblue"></div>
    </div>
  </body>
</html>
